package com.topone.service.impl;

import com.topone.dataObject.BusinessUrl;
import com.topone.repository.BusinessUrlRepository;
import com.topone.service.BusinessUrlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BusinessUrlServiceImpl implements BusinessUrlService {
    @Autowired
    private BusinessUrlRepository businessUrlRepository;

    @Override
    public void save(BusinessUrl businessUrl) {
        businessUrlRepository.save(businessUrl);
    }

    @Override
    public BusinessUrl getOne(Integer id) {
        return businessUrlRepository.getOne(id);
    }

    @Override
    public BusinessUrl findOneByBusinessId(String businessId) {
        return businessUrlRepository.findByBussinessId(businessId);
    }
}
